home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / nls / national.rea < prev    next >
Encoding:
Text File  |  1996-11-16  |  2.6 KB  |  76 lines

  1.  
  2. This package gives the Linux ability to load font, there are two keybords 
  3. defined in kernel (which is pretty important for latin2), the first one, US, 
  4. is hardcoded and the second can be changed with ioctl. They are altered with
  5. scroll_lock. 
  6.  
  7. Included fonts:
  8.     ISO 8859 Latin 1,2 8x8, 8x10, 8x12, 8x14, 8x16 pixels 
  9.             with DEC graphic character set extension
  10.     Hebrew and Russian font from "codepage"
  11.     KOI8 ?? from "fontpak" 
  12. (I would like to know which KOI8 it is, KOI8 is different name for ISO 8859
  13. so maybe it's any latin-x)
  14.  
  15. All are converted to *.psf format, which is used in latin1 package, where
  16. is also dos editor. Can be converted to/from ascii with [dump|make]font 
  17. commands.              
  18.   
  19. Commands:
  20.  
  21. loadfont [-d dir] font_file page - to load font, where page has a little bit
  22.     different meaning than in "codepage" resp. "fontpak"
  23.     page 0 is the same, i.e. no user font, standard translation 
  24.     page 1 - user font, latin-1,2, DEC graphics, PC graphics modes
  25.     page 2 - user font, no translations            
  26.     it's compiled with fontpath (defined in "config.h"), where is looks for
  27.     font_file, for different directory -d flag must be used
  28.  
  29. setfont page - this is a script, which send ESC-F-U-page sequence to set page
  30.  
  31. makefont infile outfile - converts char set in ascii to psf format
  32. dumpfont infile outfile - psf format -> ascii 
  33.  
  34. font - shows character set 
  35.  
  36. setkbd [-d dir] keymap_file diacr_file diacr_mask - sets new keyboard
  37.     keymap_file includes keymap description, is consisted from
  38.     five columns: scan_code key shift alt lock_state
  39.     lock_state can be C or O and handles caps_lock, this is new
  40.     to kernel, but it must be or latin-2 keyboards don't work properly
  41.     possible formats for other columns are 'c', decimal, hexa and octal
  42.     diacr_file includes dead keys and accents
  43.     diacr_mask - decimal number, sum of 2^(i-1) if you want the i-th dead 
  44.              key 
  45.     -d dir - same like loadfont 
  46.  
  47. Installation:
  48.  
  49.     cd ...../linux; patch -p0 <..../national/nat.patch to apply patch
  50.     then recompile kernel
  51.     look at the "config.h" and change paths you like
  52.     type "make" to compile commands and "make install" to put them to
  53.                                 /usr/bin
  54.     put all/any fonts and keyboards to directories in config.h
  55.     reboot
  56.  
  57. btw. scroll_lock led's on -> US kbd, off -> free 
  58.  
  59.                     Pavel Zaboj
  60.  
  61. comments and so on -> xzaboj@vse.cs
  62.  
  63. -------------------------------------------------------------------------
  64.  
  65. patch is derived from latin1, codepage resp. fontpak and something is mine
  66.  
  67. credits:
  68.     Joel Hoffman (joel@wam.umd.edu), 
  69.         original codepage
  70.     Jerry Kaidor (tr2!jerry@abekas.com, jkaidor@synoptics.com),
  71.         fontpak
  72.     Peter Anvin (hpa@nwu.edu),
  73.         latin1 font, latin1.patch  
  74.  
  75.  
  76.